home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / hpmca.exe / OEMSETUP.INF < prev    next >
INI File  |  1993-10-25  |  23KB  |  606 lines

  1. ; HP27246 MCA setup file.
  2. [Identification]
  3.     OptionType = NetAdapter
  4. [PlatformsSupported]
  5.     MCA
  6. [Options]
  7.     HPMCA
  8. [FileConstants]
  9. UtilityInf      = "UTILITY.INF"
  10. subroutineinf   = "SUBROUTN.INF"
  11. SoftwareType    = "driver"
  12. Exit_Code       = 0
  13. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  14. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  15. UBPS_1BYTE      = 202 
  16. UBPS_2BYTE      = 99 
  17. NETCARD_ID      = 25546
  18. Manufacturer    = "Hewlett-Packard"
  19. ProductMajorVersion     = "3"
  20. ProductMinorVersion     = "1"
  21. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  22.  
  23. ProductSoftwareName     = "Hpmca"
  24. ProductSoftwareTitle    = "HP 27246A MC LAN Driver"
  25. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\hpmca.sys"
  26. NetRuleSoftwareType     = "hpmcaSys ndisDriver hpmcaDriver"
  27. NetRuleSoftwareUse      = $(SoftwareType)
  28. NetRuleSoftwareBindForm = """HpmcaSys"" yes no container"
  29. NetRuleSoftwareClass    = {"hpmcaDriver basic"}
  30. NetRuleSoftwareBindable = {"hpmcaDriver hpmcaAdapter non exclusive 100"}
  31. ProductHardwareName     = "Hpmca"
  32. ProductHardwareTitle    = "HP 27246A"
  33. NetRuleHardwareType     = "hpmca hpmcaAdapter"
  34. NetRuleHardwareBindForm = " yes yes container"
  35. NetRuleHardwareClass    = {"hpmcaAdapter basic"}
  36. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  37. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  38. [GeneralConstants]
  39. from      = ""
  40. to        = ""
  41. ExitCodeOk     = 0
  42. ExitCodeCancel = 1
  43. ExitCodeFatal  = 2
  44. KeyNull         = ""
  45. MAXIMUM_ALLOWED   = 33554432
  46. RegistryErrorIndex = NO_ERROR
  47. KeyProduct      = ""
  48. KeyParameters   = ""
  49. TRUE            = 1
  50. FALSE           = 0
  51. NoTitle            = 0
  52. ExitState   = "Active"
  53. OldVersionExisted = $(FALSE)
  54. DriverPath      = $(!STF_NTPATH)\drivers
  55. [date]
  56.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  57. [Identify]
  58.     read-syms Identification
  59.     set Status     = STATUS_SUCCESSFUL
  60.     set Identifier = $(OptionType)
  61.     set Media      = #("Source Media Descriptions", 1, 1)
  62.     Return $(Status) $(Identifier) $(Media)
  63. [ReturnOptions]
  64.     set Status        = STATUS_FAILED
  65.     set OptionList     = {}
  66.     set OptionTextList = {}
  67.     set LanguageList = ^(LanguagesSupported, 1)
  68.     Ifcontains(i) $($0) in $(LanguageList)
  69.         ifstr(i) $($1) == ""
  70.            goto returnoptions
  71.         endif
  72.         set PlatformList = ^(PlatformsSupported, 1)
  73.         Ifcontains(i) $($1) in $(PlatformList)
  74.            goto returnoptions
  75.         else
  76.            set Status = STATUS_NOTSUPPORTED
  77.            goto finish_ReturnOptions
  78.         endif
  79.     else
  80.         set Status = STATUS_NOLANGUAGE
  81.         goto finish_ReturnOptions
  82.     endif
  83. returnoptions = +
  84.     set OptionList     = ^(Options, 1)
  85.     set OptionTextList = ^(OptionsText$($0), 1)
  86.     set Status         = STATUS_SUCCESSFUL
  87. finish_ReturnOptions = +
  88.     Return $(Status) $(OptionList) $(OptionTextList)
  89. [InstallOption]
  90.     set Option   = $($1)
  91.     set SrcDir   = $($2)
  92.     set AddCopy  = $($3)
  93.     set DoCopy   = $($4)
  94.     set DoConfig = $($5)
  95.     set LanguageList = ^(LanguagesSupported, 1)
  96.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  97.         Return STATUS_NOLANGUAGE
  98.     endif
  99.     Debug-Output "OEMNADUM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  100.     Debug-Output "OEMNADUM.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  101.     set-subst LF = "\n"
  102.     read-syms GeneralConstants
  103.     read-syms FileConstants
  104.     read-syms DialogConstants$(!STF_LANGUAGE)
  105.     read-syms FileConstants$(!STF_LANGUAGE)
  106.     detect date
  107.     set-title  $(FunctionTitle)
  108.     set to   = Begin
  109.     set from = Begin
  110.     set CommonStatus = STATUS_SUCCESSFUL
  111.     EndWait
  112. Begin = +
  113.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  114.         set StartLabel = removeadapter
  115.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  116.         set StartLabel = UpgradeSoftware
  117.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  118.         set StartLabel = bindingadapter
  119.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  120.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  121.             Debug-Output "Cannot configure the hpmca driver software."
  122.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  123.         else
  124.             Debug-Output "Cannot configure the hpmca adapter card."
  125.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  126.         endif
  127.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  128.             Debug-Output "ShellCode error: cannot get an error string."
  129.             goto ShellCodeError
  130.         endif
  131.         set Error = $($R0)
  132.         set from = end
  133.         set to = end
  134.         goto nonfatalinfo
  135.     else
  136.         set StartLabel = installadapter
  137.         set OEM_ABANDON_OPTIONS = {}
  138.         set OEM_ABANDON_SOFTWARE = FALSE
  139.         set OEM_ABANDON_ON = TRUE
  140.     endif
  141.     set from = $(fatal)
  142.     set to = $(fatal)
  143.     goto $(StartLabel)
  144. installadapter = +
  145.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  146.     Ifstr $(KeyProduct) != $(KeyNull)
  147.         CloseRegKey $(KeyProduct)
  148.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  149.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  150.                $(ProductVersion)
  151.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  152.                Debug-Output "ShellCode error: cannot get an error string."
  153.                goto ShellCodeError
  154.            endif
  155.            goto end
  156.         else
  157.            Shell $(UtilityInf), CardExistedDlg
  158.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  159.                Debug-Output "ShellCode error: cannot get an error string."
  160.                goto ShellCodeError
  161.            endif
  162.            ifstr(i) $($R1) != "OK"
  163.                goto end
  164.            endif
  165.            set OldVersionExisted = $(TRUE)
  166.         endif
  167.     endif
  168.     goto nextstep
  169. configureadapter = +
  170.     set Error = "Configure: Not Implmemented yet"
  171.     goto fatal
  172. nextstep = +
  173.     StartWait
  174. installproduct = +
  175.     Shell $(UtilityInf), MCAFindBus, $(UBPS_1BYTE), $(UBPS_2BYTE)
  176.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  177.         goto ShellCodeError
  178.     endif
  179.     ifstr $($R0) != "NO_ERROR"
  180.         set Error = $($R0)
  181.         goto fatal
  182.     endif
  183.     ifstr(i) $($R1) == {}
  184.         set Error = $(CANNOT_FIND_ANY_CARD)
  185.         set CommonStatus = USER_CANCEL
  186.         set from = "end"
  187.         goto nonfatal
  188.     endif
  189.     set AdapterList = $($R1)
  190.     ifint $(OldVersionExisted) == $(FALSE)
  191.         ifstr(i) $(!NTN_InstallMode) == "install"
  192.            Ifstr(i) $(DoCopy) == "YES"
  193.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  194.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  195.                   Goto ShellCodeError
  196.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  197.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  198.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  199.                       goto ShellCodeError
  200.                   endif
  201.                   set Error = $($R0)
  202.                   Goto fatal
  203.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  204.                   Goto successful
  205.               Endif
  206.               Set SrcDir = $($R1)
  207.            Endif
  208.            install "Install-Option"
  209.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  210.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  211.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  212.                   goto ShellCodeError
  213.               endif
  214.               set Error = $($R0)
  215.               goto fatal
  216.            endif
  217.         endif
  218.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  219.             $(ProductSoftwareName), +
  220.             $(ProductSoftwareName), +
  221.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  222.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  223.             $(NetEventDLL)
  224.         Set OEM_ABANDON_SOFTWARE = TRUE
  225.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  226.             goto ShellCodeError
  227.         endif
  228.         set RegistryErrorIndex = $($R0)
  229.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  230.             EndWait
  231.             CloseRegKey $($R1)
  232.             CloseRegKey $($R2)
  233.             CloseRegKey $($R3)
  234.             CloseRegKey $($R4)
  235.             CloseRegKey $($R5)
  236.             goto fatalregistry
  237.         endif
  238.         Set SoftProductKey      = $($R1)
  239.         Set SoftNetRuleKey      = $($R2)
  240.         Set SoftServiceKey      = $($R3)
  241.         Set SoftParameterKey    = $($R4)
  242.         Set SoftLinkageKey      = $($R5)
  243.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  244.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  245.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  246.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  247.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  248.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  249.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  250.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  251.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  252.             goto ShellCodeError
  253.         endif
  254.         set RegistryErrorIndex = $($R0)
  255.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  256.             EndWait
  257.             CloseRegKey $(SoftProductKey)
  258.             CloseRegKey $(SoftNetRuleKey)
  259.             CloseRegKey $(SoftServiceKey)
  260.             CloseRegKey $(SoftParameterKey)
  261.             CloseRegKey $(SoftLinkageKey)
  262.             goto fatalregistry
  263.         endif
  264.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  265.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  266.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  267.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  268.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  269.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  270.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  271.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  272.             goto ShellCodeError
  273.         endif
  274.         set RegistryErrorIndex = $($R0)
  275.         CloseRegKey $(SoftProductKey)
  276.         CloseRegKey $(SoftNetRuleKey)
  277.         CloseRegKey $(SoftServiceKey)
  278.         CloseRegKey $(SoftParameterKey)
  279.         CloseRegKey $(SoftLinkageKey)
  280.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  281.             EndWait
  282.             goto fatalregistry
  283.         endif
  284.     endif
  285.     ForListDo $(AdapterList)
  286.         set BusNum = *($($),1)
  287.         set SlotNum = *($($),2)
  288.         Debug-Output $(BusNum)
  289.         Debug-Output $(SlotNum)
  290.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  291.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  292.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  293.             goto ShellCodeError
  294.         endif
  295.         ifstr $($R0) != "NO_ERROR"
  296.             set Error = $($R0)
  297.             goto fatal
  298.         endif
  299.         ifstr(i) $($R1) != "YES"
  300.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  301.                 ifint $($R4) != -1
  302.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  303.                 endif
  304.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  305.                     goto ShellCodeError
  306.                 endif
  307.                 set RegistryErrorIndex = $($R0)
  308.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  309.                     EndWait
  310.                     CloseRegKey $($R1)
  311.                     CloseRegKey $($R2)
  312.                     CloseRegKey $($R3)
  313.                     goto fatalregistry
  314.                 endif
  315.                 Set HardNetCardKey      = $($R1)
  316.                 Set HardNetRuleKey      = $($R2)
  317.                 Set HardParameterKey    = $($R3)
  318.                 set AdapterNumber       = $($R4)
  319.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  320.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  321.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  322.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  323.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  324.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  325.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  326.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.                     goto ShellCodeError
  328.                 endif
  329.                 Shell $(UtilityInf), GetBusTypeNum
  330.                 set BusTypeNum = $($R1)
  331.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  332.                     Debug-Output "ShellCode error."
  333.                     goto ShellCodeError
  334.                 endif
  335.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  336.                                 {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  337.                                 {CardType,$(NoTitle),$(!REG_VT_DWORD),3},+
  338.                                 {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  339.                                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  340.                                 {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  341.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  342.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  343.                     goto ShellCodeError
  344.                 endif
  345.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  346.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  347.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  348.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  349.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  350.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  351.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  352.                 CloseRegKey $(HardNetCardKey)
  353.                 CloseRegKey $(HardNetRuleKey)
  354.                 CloseRegKey $(HardParameterKey)
  355.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  356.                     goto ShellCodeError
  357.                 endif
  358.          endif
  359.     EndForListDo
  360.     goto writeparameters
  361. writeparameters = +
  362.     EndWait
  363.     goto successful
  364. bindingadapter =+
  365.     set Error = "Binding: Not Implmemented yet"
  366.     goto fatal
  367. removeadapter = +
  368.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  369.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  370.             $(ProductSoftwareName)
  371.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  372.             Debug-Output "ShellCode error"
  373.             goto ShellCodeError
  374.         endif
  375.         set RegistryErrorIndex = $($R0)
  376.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  377.             goto fatalregistry
  378.         endif
  379.     else
  380.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  381.             $(ProductSoftwareName), $(!NTN_RegBase)
  382.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  383.             Debug-Output "ShellCode error"
  384.             goto ShellCodeError
  385.         endif
  386.         set RegistryErrorIndex = $($R0)
  387.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  388.             goto fatalregistry
  389.         endif
  390.     endif
  391.     goto end
  392. UpgradeSoftware = +
  393.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  394.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  395.         Ifstr $(KeyProduct) != $(KeyNull)
  396.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  397.             set Version = *($(VersionInfo), 4)
  398.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  399.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  400.                 Debug-Output "ShellCode error"
  401.                 goto ShellCodeError
  402.             endif
  403.             set !UG_Filename = $($R0)
  404.             ifstr(i) $(!UG_Filename) != ""
  405.                 install "Install-Update"
  406.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  407.                     goto fatal
  408.                 endif
  409.             endif
  410.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  411.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  412.             ifint $(Version) != $(ProductVersion)
  413.             endif
  414.             CloseRegKey $(KeyProduct)
  415.         else
  416.             goto fatalregistry
  417.         endif
  418.     else
  419.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  420.               $(MAXIMUM_ALLOWED) NetworkCardKey
  421.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  422.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  423.             set ServiceName = *($(ServiceNameInfo), 4)
  424.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  425.                 $(MAXIMUM_ALLOWED) NetRuleKey
  426.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  427.             else
  428.                 goto fatalregistry
  429.             endif
  430.             CloseRegKey $(NetRules)
  431.             CloseRegKey $(NetworkCardKey)
  432.         else
  433.             goto fatalregistry
  434.         endif
  435.         OpenRegKey $(!REG_H_LOCAL) "" +
  436.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  437.               $(MAXIMUM_ALLOWED) ServiceKey
  438.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  439.             CloseRegKey $(ServiceKey)
  440.         else
  441.             goto fatalregistry
  442.         endif
  443.     endif
  444.     goto end
  445. successful = +
  446.     goto end
  447. abandon = +
  448.     ForListDo $(OEM_ABANDON_OPTIONS)
  449.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  450.             $(ProductSoftwareName), $($)
  451.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  452.             Debug-Output "ShellCode error"
  453.             goto ShellCodeError
  454.         endif
  455.         set RegistryErrorIndex = $($R0)
  456.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  457.             goto fatalregistry
  458.         endif
  459.     EndForListDo
  460.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  461.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  462.             $(ProductSoftwareName), FALSE
  463.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  464.             Debug-Output "ShellCode error"
  465.             goto ShellCodeError
  466.         endif
  467.         set RegistryErrorIndex = $($R0)
  468.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  469.             goto fatalregistry
  470.         endif
  471.     endif
  472.     goto end
  473. warning = +
  474.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  475.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.         goto ShellCodeError
  477.     endif
  478.     ifstr(i) $($R1) == "OK"
  479.         goto $(to)
  480.     else-ifstr(i) $($R1) == "CANCEL"
  481.         goto $(from)
  482.     else
  483.         goto "end"
  484.     endif
  485. nonfatalinfo = +
  486.     Set CommonStatus = STATUS_USERCANCEL
  487.     Set Severity = STATUS
  488.     goto nonfatalmsg
  489. nonfatal = +
  490.     Set Severity = NONFATAL
  491.     goto nonfatalmsg
  492. nonfatalmsg = +
  493.     ifstr(i) $(Error) == ""
  494.         Set Severity = NONFATAL
  495.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  496.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  497.             goto ShellCodeError
  498.         endif
  499.         set Error = $($R0)
  500.     endif
  501.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  502.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  503.         goto ShellCodeError
  504.     endif
  505.     ifstr(i) $($R1) == "OK"
  506.         goto $(from)
  507.     else
  508.         goto "end"
  509.     endif
  510. fatalregistry = +
  511.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  512.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  513.         goto ShellCodeError
  514.     endif
  515.     set Error = $($R0)
  516.     goto fatal
  517. fatal = +
  518.     ifstr(i) $(Error) == ""
  519.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  520.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  521.             goto ShellCodeError
  522.         endif
  523.         set Error = $($R0)
  524.     endif
  525.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  526.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.         goto ShellCodeError
  528.     endif
  529.     goto setfailed
  530. ShellCodeError = +
  531.     set DlgType      = "MessageBox"
  532.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  533.     set STF_MB_TEXT  = "Shell Code Error"
  534.     set STF_MB_TYPE  = 1
  535.     set STF_MB_ICON  = 3
  536.     set STF_MB_DEF   = 1
  537.     ui start "Error Message"
  538.     goto setfailed
  539. setfailed = +
  540.     set CommonStatus = STATUS_FAILED
  541.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  542.         set OEM_ABANDON_ON = FALSE
  543.         goto abandon
  544.     endif
  545.     goto end
  546. end = +
  547.     goto term
  548. term = +
  549.     Return $(CommonStatus)
  550. [Install-Option]
  551.     set STF_VITAL = ""
  552.     ifstr(i) $(AddCopy) == "YES"
  553.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  554.     endif
  555.     ifstr(i) $(DoCopy) == "YES"
  556.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  557.        CopyFilesInCopyList
  558.     endif
  559.     ifstr(i) $(DoConfig) == "YES"
  560.     endif
  561.     Exit
  562. [Install-Update]
  563.    set STF_VITAL        = ""
  564.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  565.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  566.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  567.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  568.    CopyFilesInCopyList
  569.    exit
  570. [Source Media Descriptions]
  571.     1  = "HP 27246 Driver Support Disk"  , TAGFILE = disk1
  572. [ProductType]
  573. STF_PRODUCT  = Winnt
  574. STF_PLATFORM = I386
  575. [Files-Inf]
  576. 1,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  577. [Files-HPMCA]
  578. 1,HPMCA.SYS , SIZE=54784
  579. [LanguagesSupported]
  580.     ENG
  581. [OptionsTextENG]
  582.     HPMCA     = "HP 27246A MC LAN Adapter/16 TP"
  583. [FileConstantsENG]
  584. ProCaption   = "Windows NT Setup"
  585. ProCancel    = "Cancel"
  586. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  587.                "Are you sure you want to cancel copying files?"
  588. ProCancelCap = "Network Setup Message"
  589. ProText1     = "Copying:"
  590. ProText2     = "To:"
  591. FunctionTitle   = "HP 27246A MC LAN Adapter/16 TP Setup"
  592. ProductSoftwareDescription   = "HP 27246A MC LAN Adapter Driver"
  593. ProductHardwareDescription   = "HP 27246A MC LAN Adapter/16 TP"
  594. CANNOT_FIND_ANY_CARD         = "Network card is not present in the system"
  595. [DialogConstantsENG]
  596. Help        = "&Help"
  597. Exit        = "Cancel"
  598. OK          = "OK"
  599. HelpContext = ""
  600. Continue    = "C&ontinue"
  601. Cancel      = "C&ancel"
  602. [FileDependentDlgENG]
  603.  
  604.  
  605.  
  606.